// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-9-15 18:54:28


// Source File Name:   th.java

package com.zelix;

import java.util.Stack;


//            uh, si

class th
{

    private Stack a;
    private Stack b;
    private int c;
    private int d;
    private boolean e;

    th()
    {
        a = new Stack();
        b = new Stack();
        c = 0;
        d = 0;
    }

    void a(uh uh1)
    {
        int i = si.g;
        if(i == 0) goto _L2; else goto _L1
_L1:
        b();
_L2:
        if(c <= d)
        {
            d = ((Integer)b.pop()).intValue();
            return;
        }
        if(true) goto _L1; else goto _L3
_L3:
    }

    void a(uh uh1, boolean flag)
    {
        int i;
        int j;
        j = si.g;
        if(!flag)
            break MISSING_BLOCK_LABEL_87;
        i = a();
        d = ((Integer)b.pop()).intValue();
        if(j == 0) goto _L2; else goto _L1
_L1:
        uh uh2 = b();
        uh2.a(uh1);
        uh1.a(uh2, i);
_L2:
        if(i-- > 0) goto _L1; else goto _L3
_L3:
        uh1.b();
        c(uh1);
        e = true;
        if(j == 0)
            break MISSING_BLOCK_LABEL_109;
        d = ((Integer)b.pop()).intValue();
        e = false;
    }

    int a()
    {
        return c - d;
    }

    void b(uh uh1)
    {
        b.push(new Integer(d));
        d = c;
        uh1.c();
    }

    uh b()
    {
        if(--c < d)
            d = ((Integer)b.pop()).intValue();
        return (uh)a.pop();
    }

    void c(uh uh1)
    {
        a.push(uh1);
        c++;
    }
}